We return the raw window drawable, so its likely the app will do some
weird stuff to it, like draw using non-gdk operations. We don't want
the app to see any half-drawn state, so flush everything.
This fixes a scroll issue in firefox at least.
*real_drawable = paint->pixmap;
}
else
- *real_drawable = window;
+ {
+ /* This means you're probably gonna be doing some weird shit
+ directly to the window, so we flush all outstanding stuff */
+ gdk_window_flush (window);
+ *real_drawable = window;
+ }
}
gdk_window_get_offsets (window, &x_off, &y_off);